import request from '@/utils/request'

// 查询采购入库详情列表
export function listEntryDetails(query) {
  return request({
    url: '/purchasing/entryDetails/list',
    method: 'get',
    params: query
  })
}

// 查询采购入库详情详细
export function getEntryDetails(warehouseDetailsId) {
  return request({
    url: '/purchasing/entryDetails/' + warehouseDetailsId,
    method: 'get'
  })
}

// 新增采购入库详情
export function addEntryDetails(data) {
  return request({
    url: '/purchasing/entryDetails',
    method: 'post',
    data: data
  })
}

// 修改采购入库详情
export function updateEntryDetails(data) {
  return request({
    url: '/purchasing/entryDetails',
    method: 'put',
    data: data
  })
}

// 删除采购入库详情
export function delEntryDetails(warehouseDetailsId) {
  return request({
    url: '/purchasing/entryDetails/' + warehouseDetailsId,
    method: 'delete'
  })
}
